home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Image & Music Effects / preload-img-script.izs < prev    next >
Text File  |  2005-07-30  |  1KB  |  52 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Preload images script
  4. <!/TITLE>
  5.  
  6. <!DESCRIPTION>Preloading images refers to loading images into browser cache prior to displaying them, and is used when you wish certain images to be revealed instantly when called upon (such as in a rollover effect). Use this script to preload any number of images easily.
  7. <!/DESCRIPTION> 
  8.  
  9. <!CATEGORY>img and music effects<!/CATEGORY>
  10.  
  11. <!SCRIPT>
  12. <!-- START OF SCRIPT -->
  13. <script>
  14.  
  15. var myimages=new Array()
  16. function preloadimages(){
  17. for (i=0;i<preloadimages.arguments.length;i++){
  18. myimages[i]=new Image()
  19. myimages[i].src=preloadimages.arguments[i]
  20. }
  21. }
  22.  
  23.  
  24. //Enter path of images to be preloaded inside parenthesis. Extend list as desired.
  25. preloadimages("http://mydomain.com/firstimage.gif","http://mydomain.com/secondimage.gif","http://mydomain.com/thirdimage.gif")
  26.  
  27. </script>
  28. <!-- END OF SCRIPT -->
  29. <!/SCRIPT>
  30.  
  31. <!PREVIEW>
  32. <!-- START OF SCRIPT -->
  33. <script>
  34.  
  35. var myimages=new Array()
  36. function preloadimages(){
  37. for (i=0;i<preloadimages.arguments.length;i++){
  38. myimages[i]=new Image()
  39. myimages[i].src=preloadimages.arguments[i]
  40. }
  41. }
  42.  
  43.  
  44. //Enter path of images to be preloaded inside parenthesis. Extend list as desired.
  45. preloadimages("http://mydomain.com/firstimage.gif","http://mydomain.com/secondimage.gif","http://mydomain.com/thirdimage.gif")
  46.  
  47. </script>
  48.  
  49. <!-- END OF SCRIPT -->
  50. <!/PREVIEW>
  51.  
  52. <!RELATED>NONE<!/RELATED>